package mapevents;

import gameengine.map.Map;
import gameengine.map.unit.Unit;

public final class BuildingEvent extends AbstractMapEvent {
    private final transient int xBuilding;
    private final transient int yBuilding;

    public BuildingEvent(final int xCoordinate, final int yCoordinate) {
        super();
        xBuilding = xCoordinate;
        yBuilding = yCoordinate;
    }

    @Override
    public Unit getAttacker() {
        return null;
    }

    @Override
    public MAPEVENTTYPE getType() {
        return MAPEVENTTYPE.BUILDING;
    }

    @Override
    public Unit getUnit() {
        return null;
    }

    @Override
    public int getXStart() {
        return xBuilding;
    }

    @Override
    public int getXTarget() {
        return xBuilding;
    }

    @Override
    public int getYStart() {
        return yBuilding;
    }

    @Override
    public int getYTarget() {
        return yBuilding;
    }

    @Override
    public AbstractMapEvent newMapEvent(final int xClick, final int yClick, final boolean leftClick, final Map map, final int party) {
        return getMapEvent(xClick, yClick, leftClick, map, party);
    }
}
